← Course index · R314 System & Network
MMIBUT Métiers du Multimédia et de l'Internet · IUT de Vélizy

TD · Internet directory service: DNS

Reading nslookup output and analysing a DNS exchange captured with Wireshark.

TDnslookupWireshark trace

01Exercise 1 — Querying the DNS database

In the following screenshot, the user has performed several DNS queries with the nslookup program.

C:\> nslookup www.mit.edu Server: dns-prime.poly.edu Address: 128.238.29.22 Name: www.mit.edu Address: 18.7.22.83 C:\> nslookup -type=NS mit.edu Server: dns-prime.poly.edu Address: 128.238.29.22 Non-authoritative answer: mit.edu nameserver = bitsy.mit.edu mit.edu nameserver = strawb.mit.edu mit.edu nameserver = w20ns.mit.edu bitsy.mit.edu internet address = 18.72.0.3 strawb.mit.edu internet address = 18.71.0.151 w20ns.mit.edu internet address = 18.70.0.160 C:\> nslookup www.aiit.or.kr bitsy.mit.edu Server: BITSY.MIT.EDU Address: 18.72.0.3 Non-authoritative answer: Name: www.aiit.or.kr Address: 218.36.94.200

First query

  1. In which domain is the user's machine located, and what is its default name server?
  2. What other information does the user get from the first query?
  3. Can we tell whether the answer was obtained recursively or iteratively?

Second query

  1. Which name server responds?
  2. What is the user asking for with the option -type=NS?
  3. What is the answer?
  4. What does "Non-authoritative answer" mean?

Third query

  1. What is the second argument used for?
  2. Is it normal that the answer is non-authoritative?

02Exercise 2 — Discovering the DNS protocol

The following trace contains traffic captured between a browser and the website http://www.ouifm.fr/.

Traffic capture

No.TimeSourceDestinationProtocolInfo
10.000000192.168.2.8789.2.0.1DNSStandard query A www.ouifm.fr
20.00982789.2.0.1192.168.2.87DNSStandard query response CNAME www.ouirock.com A 217.19.61.13
60.028282192.168.2.87217.19.61.13HTTPGET / HTTP/1.1
80.055848217.19.61.13192.168.2.87HTTPHTTP/1.1 200 OK
250.090735192.168.2.87217.19.61.13HTTPGET /img/elements/ico.ico HTTP/1.1
General questions
  1. Justify the first two frames.
  2. Summarise the exchange with a diagram showing the IP addresses of the machines and the protocols used.
  3. About frame 25: why is there no new DNS query before retrieving http://www.ouifm.fr/img/elements/ico.ico?

Detailed analysis of the first two frames

Frame 1 (72 bytes on wire, 72 bytes captured) Ethernet II, Src: 00:15:c5:69:de:36, Dst: 00:30:bd:24:1d:a5 Internet Protocol, Src: 192.168.2.87, Dst: 89.2.0.1 User Datagram Protocol, Src Port: 4029, Dst Port: 53 Domain Name System (query) [Response In: 2] Transaction ID: 0xbe66 Flags: 0x0100 (Standard query) Questions: 1 Answer RRs: 0 Authority RRs: 0 Additional RRs: 0 Queries www.ouifm.fr: type A, class IN
Frame 2 (117 bytes on wire, 117 bytes captured) Ethernet II, Src: 00:30:bd:24:1d:a5, Dst: 00:15:c5:b9:de:36 Internet Protocol, Src: 89.2.0.1, Dst: 192.168.2.87 User Datagram Protocol, Src Port: 53, Dst Port: 4029 Domain Name System (response) [Request In: 1] [Time: 0.009827000 seconds] Transaction ID: 0xbe66 Flags: 0x8180 (Standard query response, No error) Questions: 1 Answer RRs: 2 Authority RRs: 0 Additional RRs: 0 Queries www.ouifm.fr: type A, class IN Answers www.ouifm.fr: type CNAME, class IN, cname www.ouirock.com www.ouirock.com: type A, class IN, addr 217.19.61.13
Detailed questions
  1. How many questions and how many answers does the DNS query contain? What is the type of the query?
  2. Which transport protocol is used, and what is the server's listening port?
  3. How many questions and how many answers does the DNS response contain? What is the content of the response?